package net.thxjj.mobileServer.entity;

public enum GenieErrcode {

    SUCCESS(200,"success"),
    FAILED(400,"failed"),
    PARAMETER_EMPTY(70001,"参数为空"),
    PARAMETER_ERROR(70002, "参数错误"),
    CLIENT_ID_NOT_CORRECT(70003,"client_id不正确"),
    CLIENT_SECRET_NOT_CORRECT(70004,"clinet_secret不正确"),
    CODE_IS_NOT_EXIST(70005,"code不存在"),
    ACCESS_TOKEN_IS_EXSPIRED(70006, "access token超时"),
    REFRESH_TOKEN_IS_EXSPIRED(70007, "refresh token超时"),
    USER_IS_NOT_EXIST(70008, "用户不存在"),
    USER_IS_MORE_THAN_ONE(70009, "用户存在多个"),
    PASSWORD_ERROR(70010, "密码错误"),
    USERNAME_IS_EMPTY(70011, "用户名为空"),
    PASSWORD_IS_EMPTY(70012, "密码为空"),
    ;
    private String error_description;
    private long error;
    private GenieErrcode(long error, String error_description) {
        this.error = error;
        this.error_description = error_description;
    }

    public String getError_description() {
        return error_description;
    }

    public long getError() {
        return error;
    }
}
